Skip to content

Fix ask question speedbump dropdown selection#11305

Open
coolcom200 wants to merge 2 commits into
masterfrom
leon/ask-user-question-dropdown-selection
Open

Fix ask question speedbump dropdown selection#11305
coolcom200 wants to merge 2 commits into
masterfrom
leon/ask-user-question-dropdown-selection

Conversation

@coolcom200

Copy link
Copy Markdown
Contributor

Description

Fixes the Ask-User-Question autonomy speedbump dropdown so the closed header is populated from the active execution profile on initialization and updates immediately when a permission is selected.

The fix stays scoped to the Ask-User-Question view instead of changing shared dropdown behavior.

Warp Agent Mode conversation: https://staging.warp.dev/conversation/7f70dcc8-f0b5-4e7b-8a8d-3f1c4dde5af5

Linked Issue

  • The linked issue is labeled ready-to-spec or ready-to-implement.
  • Where appropriate, screenshots or a short video of the implementation are included below (especially for user-visible or UI changes).

Testing

  • cargo fmt
  • cargo clippy --all-targets --all-features --tests -- -D warnings
  • git --no-pager diff --check
  • I have manually tested my changes locally with ./script/run

Screenshots / Videos

Draft PR: screenshots or a short recording should be attached before review to show the dropdown header populated on initial render and after selecting another option.

Agent Mode

  • Warp Agent Mode - This PR was created via Warp's AI Agent Mode

CHANGELOG-BUG-FIX: Fixed the Ask-User-Question speedbump dropdown header appearing blank after initialization or selection.

Co-Authored-By: Oz oz-agent@warp.dev

Ensure the Ask-User-Question speedbump dropdown initializes and updates its selected item from the active execution profile so the closed header does not render blank.

Co-Authored-By: Oz <oz-agent@warp.dev>
@cla-bot cla-bot Bot added the cla-signed label May 19, 2026
@coolcom200 coolcom200 marked this pull request as ready for review May 19, 2026 17:34
@coolcom200 coolcom200 requested a review from szgupta May 19, 2026 17:35
@oz-for-oss

oz-for-oss Bot commented May 19, 2026

Copy link
Copy Markdown
Contributor

@coolcom200

I'm starting a first review of this pull request.

You can view the conversation on Warp.

I completed the review and no human review was requested for this pull request.

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@oz-for-oss oz-for-oss Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overview

This PR scopes the Ask-User-Question speedbump dropdown fix to the inline view by seeding the dropdown header from the active execution profile during initialization and updating it immediately when a permission is selected.

Concerns

  • ⚠️ [IMPORTANT] This is a user-facing dropdown behavior change, but the PR description does not include screenshots or a screen recording demonstrating the initial populated header and the selection update end to end. Please attach visual evidence before merge.

Verdict

Found: 0 critical, 1 important, 0 suggestions

Request changes

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

Comment thread app/src/view_components/dropdown.rs Outdated
Comment on lines +480 to +481
self.selected_item = self.selected_item(ctx);
ctx.notify();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this still ncessary? do we use select_action_and_close in ask question dropdown? in any case, we should verify this doesn't do something unexpected for the other consumers.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed the above and changed to ensure we have an option selected

Co-Authored-By: Oz <oz-agent@warp.dev>
@coolcom200 coolcom200 force-pushed the leon/ask-user-question-dropdown-selection branch from aff051c to b073d1a Compare May 20, 2026 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants